<%@ taglib prefix="tpl" tagdir="/WEB-INF/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<tpl:header title="Profile" />

<h1>Profile</h1>



<form method="post">
	<fieldset>
		<legend>Web profile</legend>
		New password: <input type="password" name="password"  />
	</fieldset>
	<fieldset>
		<legend>Address</legend>
		Name: <input type="text" name="name" value="${sessionScope.currentUser.name}" /><br />
		Street address: <input size="50" type="text" name="street_address" value="${sessionScope.currentUser.streetAddress}" /><br />
		City: <input type="text" name="city" value="${sessionScope.currentUser.city}" /><br />
		Zip code: <input type="text" name="zipcode" size="7" value="${sessionScope.currentUser.zipcode}" /><br />
		Country: <input type="text" name="country" value="${sessionScope.currentUser.country}" />
	</fieldset>
	<br />
	<input type="submit" value="Update profile" />
</form>

<tpl:footer />